<?php

namespace App\Scopes;

use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Scope;

/**
 * Class TeamScope
 * @package App\Models
 */
class TeamScope implements Scope
{
    /**
     * Apply the scope to a given Eloquent query builder.
     *
     * @param Builder $builder
     * @param Model   $model
     * @return void
     */
    public function apply(Builder $builder, Model $model): void
    {
        /*
        $scope = getScopes();
        if ($scope === 'all') {
            return ;
        }
        if (in_array($model->table, noTeamIdTableList())) {
            return ;
        }
        $key = $model->table === 'team' ? 'team.id' : $model->table . '.team_id';

        $builder->whereIn($key, $scope);
        */
    }
}
